package com.coderly.onlinegallerysharingplatform.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import com.coderly.onlinegallerysharingplatform.common.response.Response;
import com.coderly.onlinegallerysharingplatform.toolkit.StpKit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Deprecated
public class TestController {

    /**
     * 测试接口
     * @return
     */
    @GetMapping("/test")
    public Response<String> test() {

        return Response.success("ok");
    }

    @SaCheckRole(type = StpKit.SPACE_TYPE, value = {"viewer"})
    @GetMapping("/space_user")
    public Response<String> test2() {
        return Response.success("ok");
    }
}
